package com.hollowlatte.common.exceptionhandler;

/**
 * @author Hollow Latte
 * @date 2021/5/7 8:54
 */
public class CustomException extends RuntimeException {
    private String code;
    private String message;

    public CustomException() {
    }

    public CustomException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
